<template>
  <div class="home-view">
    <router-view />

    <van-tabbar route :fixed="false">
      <van-tabbar-item to="/films" icon="home-o">电影</van-tabbar-item>
      <van-tabbar-item to="/cinemas" icon="search">影院</van-tabbar-item>
      <van-tabbar-item to="/demo" icon="search">Demo</van-tabbar-item>
      <van-tabbar-item to="/center" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from "vant";

export default {
  name: "HomeView",
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
  },
};
</script>

<style lang="scss" scoped>
.home-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: hidden;
}
</style>
